package factory_method;

public class FactoryPatternDemo {
	public static void main(String[] argStrings) {
		ShapeFactory shapeFactory = new ShapeFactory();

		Shape shape1 = shapeFactory.getShape("circle");
		shape1.draw();

		Shape shape2 = shapeFactory.getShape("rectangle");
		shape2.draw();

		Shape shape3 = shapeFactory.getShape("triangle");
		shape3.draw();
	}
}
